#!/usr/bin/env node

//导出函数
const pi = Math.PI;
module.exports = function circle(radius) {
    function circumference() {
        return 2 * pi * radius;
    }
    function area() {
        return pi * radius * radius;
    }
    return {
        circumference,
        area
    };
}

console.log('\n03-export-function:\n',module);